﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SCRS.Model;
/// <summary>
/// 订单信息
/// </summary>
[Table("SYS_ORDER_INFO")]
public class OrderInfo
{
    /// <summary>
    /// 订单ID
    /// </summary>
    [Key]
    [Column("ID")]
    public string Id { get; set; }
    /// <summary>
    /// 订单总价
    /// </summary>
    [Column("TOTAL_PRICE")]
    public decimal TotalPrice { get; set; }
    /// <summary>
    /// 订单时间
    /// </summary>
    [Column("ORDER_TIME")]
    public DateTime OrderTime { get; set; }
    /// <summary>
    /// 收银员
    /// </summary>
    [Column("CASHIER")]
    public int Cashier { get; set; }
    /// <summary>
    /// 会员卡号
    /// </summary>
    [Column("VIP_CARD_ID")]
    public string VipCardId { get; set; }
}